<script setup lang="ts">
import $api from "@/api";
import { getRouteMenus } from "@/router/helper";

init();
const { t, d, n } = useI18n();
function init() {
  const menus = getRouteMenus();
  $api.user.loadUserInfo();
  $api.user.loadUserInfo();
  console.log("menus", menus);
}
</script>

<template>
  <div>
    <div>login</div>
    <button>{{ t("component.button.ok") }}</button>
  </div>
</template>

<style scoped lang="scss"></style>

<route>
{
  meta: {
    cache: true,
    menu: false,
    pxtorem: {
      designWidth: 750
    }
  }
}
</route>
